<!--<div class="row" >-->
<!--<label class="control-label" style="margin-left: 30px;">来电号码：</label>-->
<!--<input type="text" class="btn btn-md btn-danger"></input>-->
<!--<label class="control-label">客户：</label>-->
<!--<input class="btn btn-md btn-default" disabled="disabled"></input>-->
<!--<label class="control-label">地址：</label>-->
<!--<input  class="btn btn-md btn-default" disabled="disabled"></input>-->
<!--</div>-->
<div class="row" style="margin-top:15px;">
  <div class="col-md-5">
    <!-- general form elements -->
    <div class="panel panel-primary" style="height: 500px;">
      <div class="panel-heading">
        <h3 class="panel-title">客户资料</h3>
      </div>
      <!-- /.box-header -->
      <!-- form start -->
      <div class="panel-body">
        <div class="row">
          <div class="col-xs-2 text-left">
            <label>客户编号</label>
          </div>
          <div style="margin-left: -20px;margin-top: -8px;" class="col-xs-4">
            <input type="text" class="form-control input-sm" ng-model="vm.currentCustomer.userId" ng-disabled="true">
          </div>
          <div style="margin-left: 20px;" class="col-xs-2 text-left">
            <label>客户姓名</label>
          </div>
          <div style="margin-left: -20px;margin-top: -8px;" class="col-xs-4">
            <input type="text" class="form-control input-sm" ng-model="vm.currentCustomer.name" ng-disabled="true">
          </div>
        </div>
        <br>
        <div class="row">
          <div class="col-xs-2 text-left">
            <label>客户级别</label>
          </div>
          <div style="margin-left: -20px;margin-top: -8px;"  class="col-xs-4">
            <input type="text" class="form-control input-sm"  ng-model="vm.currentCustomer.customerLevel.name" ng-disabled="true">
          </div>
          <div style="margin-left: 20px;" class="col-xs-2 text-left">
            <label>联系电话</label>
          </div>
          <div style="margin-left: -20px;margin-top: -8px;"  class="col-xs-4">
            <input type="text" class="form-control input-sm" ng-model="vm.currentCustomer.phone" ng-disabled="true">
          </div>
        </div>
        <br>
        <div class="row">
          <div  class="col-xs-2 text-left">
            <label>客户类型</label>
          </div>
          <div style="margin-left: -20px;margin-top: -8px;"  class="col-xs-4">
            <input type="text" class="form-control input-sm" ng-model="vm.currentCustomer.customerType.name" ng-disabled="true">
          </div>
          <div style="margin-left: 20px;" class="col-xs-2 text-left">
            <label>客户公司</label>
          </div>
          <div style="margin-left: -20px;margin-top: -8px;" class="col-xs-4">
            <input type="text" class="form-control  input-sm" ng-model="vm.currentCustomer.customerCompany.name" ng-disabled="true">
          </div>
        </div>
        <br>
        <div class="row">
          <div class="col-xs-2 text-left">
            <label>身份证号</label>
          </div>
          <div style="margin-left: -20px;margin-top: -8px;" class="col-xs-4">
            <input type="text" class="form-control input-sm" ng-model="vm.currentCustomer.identity" ng-disabled="true">
          </div>
          <div style="margin-left: 20px;" class="col-xs-2 text-left">
            <label>结算类型</label>
          </div>
          <div style="margin-left: -20px;margin-top: -8px;" class="col-xs-4">
            <input type="text" class="form-control  input-sm" ng-model="vm.currentCustomer.settlementType.name" ng-disabled="true">
          </div>
        </div>
        <br>
        <div class="row">
          <div class="col-xs-2 text-left">
            <label>客户地址</label>
          </div>
          <div style="margin-left: -20px;margin-top: -8px;" class="col-xs-10">
            <input type="text" class="form-control  input-sm" value="{{vm.currentCustomer.address.province}}
                   {{vm.currentCustomer.address.city}}
                   {{vm.currentCustomer.address.county}}{{vm.currentCustomer.address.detail}}" ng-disabled="true">
          </div>
        </div>
        <br>
        <div class="row">
          <div class="col-xs-2 text-left">
            <label>客户状态</label>
          </div>
          <div style="margin-left: -20px;margin-top: -8px;" class="col-xs-4">
            <select name="customerStatus" ng-model="vm.currentCustomer.status" ng-options="customerStatus.code as customerStatus.name for customerStatus in config.customerStatus" class="form-control" ng-selected="" ng-disabled="true"></select>
          </div>
          <div style="margin-left: 20px;" class="col-xs-2 text-left">
            <label>开户时间</label>
          </div>
          <div style="margin-left: -20px;margin-top: -8px;" class="col-xs-4">
            <input type="text" class="form-control input-sm" ng-model="vm.currentCustomer.createTime" ng-disabled="true">
          </div>
        </div>
        <br>
        <div class="row">
          <div class="col-xs-2 text-left">
            <label>客户来源</label>
          </div>
          <div style="margin-left: -20px;margin-top: -8px;" class="col-xs-4">
            <input type="text" class="form-control input-sm" ng-model="vm.currentCustomer.customerSource.name" ng-disabled="true">
          </div>
          <div style="margin-left: 20px;" class="col-xs-2 text-left">
            <label>剩余气票</label>
          </div>
          <div style="margin-left: -20px;margin-top: -8px;" class="col-xs-4">
            <input type="text" class="form-control input-sm" ng-model="vm.currentTicketCount" ng-disabled="true">
          </div>
          <!--<div style="margin-left: 20px;" class="col-xs-2 text-left">-->
            <!--<label>是否携瓶</label>-->
          <!--</div>-->
          <!--<div style="margin-left: -20px;margin-top: -8px;" class="col-xs-4">-->
            <!--<select name="haveCylinder" ng-model="vm.currentCustomer.haveCylinder" ng-options="haveCylinder.code as haveCylinder.name for haveCylinder in config.haveCylinders" class="form-control" ng-selected="" ng-disabled="true"></select>-->
          <!--</div>-->
        </div>
        <br>
        <div class="row">
          <div class="col-xs-2 text-left">
            <label>客户欠款</label>
          </div>
          <div style="margin-left: -20px;margin-top: -8px;" class="col-xs-4">
            <input type="text" class="form-control input-sm" ng-model="vm.currentCustomerCredit" ng-disabled="true"/>

          </div>
          <div style="margin-left: 20px;" class="col-xs-2 text-left">
            <label>客户备注</label>
          </div>
          <div style="margin-left: -20px;margin-top: -8px;" class="col-xs-4">
            <input type="text" class="form-control  input-sm" ng-model="vm.currentCustomer.note" ng-disabled="true">

          </div>
        </div>
        <hr>
        <div class="row" style="margin-top: 10px;">
          <div class="col-xs-2 text-left">
            <label>客户编号</label>
          </div>
          <div style="margin-left: -20px;margin-top: -8px;"class="col-xs-4">
            <input type="text" class="form-control  input-sm" ng-model="searchParam.customerID">
          </div>
          <div style="margin-left: 20px;" class="col-xs-2 text-left">
            <label>客户姓名</label>
          </div>
          <div style="margin-left: -20px;margin-top: -8px;" class="col-xs-4">
            <input type="text" class="form-control input-sm" ng-model="searchParam.customerName">
          </div>
        </div>
        <div class="row" style="margin-top: 10px;">
          <div class="col-xs-2 text-left">
            <label>客户电话</label>
          </div>
          <div style="margin-left: -20px;margin-top: -8px;"class="col-xs-4">
            <input type="text" class="form-control  input-sm" ng-model="searchParam.phone">
          </div>
          <div style="margin-left: 20px;" class="col-xs-2 text-left">
            <label>客户地址</label>
          </div>
          <div style="margin-left: -20px;margin-top: -8px;" class="col-xs-4">
            <input type="text" class="form-control input-sm" ng-model="searchParam.address">
          </div>
        </div>

        <div class="row" style="margin-top: 5px">
          <button type="save" class="btn btn-primary btn-md" style="margin-left: 10px" ng-click="initPopUp()">新建客户</button>
          <button type="save" class="btn btn-primary btn-md" style="margin-right: 10px" ng-click="modify(vm.currentCustomer)">资料修改</button>
          <button type="search" class="btn btn-flat pull-right"  style="margin-right: 10px" ng-click="search()"><i class="fa fa-search"></i></button>

        </div>

      </div>
    </div>
  </div>

  <div class="col-md-4">
    <div class="panel panel-primary" style="height: 500px;">
      <div class="panel-heading">
        <h3 class="panel-title">查询窗口</h3>
      </div>
      <!-- /.box-header -->
      <!-- form start -->
      <div class="panel-body" style="min-height: 250px">
        <p>关联客户</p>
        <br/>
        <table class="table table-bordered table-hover .table-condensed table-striped" style="table-layout:fixed;">
          <tr>
            <th  style="background: lightblue;text-align: center" width="8%">序号</th>
            <th  style="background: lightblue;text-align: center" width="15%">编号</th>
            <th  style="background: lightblue;text-align: center" width="15%">姓名</th>
            <th  style="background: lightblue;text-align: center" width="25%">电话</th>
            <th  style="background: lightblue;text-align: center" width="37%">地址</th>
          </tr>

          <tr ng-repeat="customer in vm.CustomerList" ng-click="showDetail(customer)">
            <td class="message" style="text-align: center">{{$index+1+pagerCustomer.pageSize*(pagerCustomer.getCurPageNo()-1)}}</td>
            <td style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;">{{customer.userId}}</td>
            <td style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;">{{customer.name}}</td>
            <td style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;">{{customer.phone}}</td>
            <td style="overflow:scroll;white-space:nowrap;" title="{{customer.address.province}}{{customer.address.city}}{{customer.address.county}}">{{customer.address.detail}}</td>
          </tr>
        </table>
        <div ng-if="vm.userList.length == 0" nj-table-no-data></div>
        <div style="margin-top: -30px" nj-pager pager="pagerCustomer" hidepagesizeoptions=true></div>
      </div>
      <hr style="margin-top: -50px"/>
      <div class="panel-body" style="margin-top: -20px">
        <p>订气记录</p>
        <br/>
        <table class="table table-bordered table-hover"  style="table-layout:fixed;">
          <tr>
            <th  style="background: lightblue;text-align: center" width="8%">序号</th>
            <th  style="background: lightblue;text-align: center" width="30%">时间</th>
            <th  style="background: lightblue;text-align: center" width="12%">配送工</th>
            <th  style="background: lightblue;text-align: center" width="20%">配送工电话</th>
            <th  style="background: lightblue;text-align: center" width="13%">状态</th>
            <th  style="background: lightblue;text-align: center" width="17%">操作</th>
          </tr>
          <tr ng-repeat="CustomerOrder in vm.CustomerOrderHistory" title="{{CustomerOrder.description}}">
            <td class="message"  style="text-align: center">{{$index+1+pagerHistory.pageSize*(pagerHistory.getCurPageNo()-1)}}</td>
            <td style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;">{{CustomerOrder.createTime}}</td>
            <td style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;">{{CustomerOrder.dispatcher.name}}</td>
            <td style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;">{{CustomerOrder.dispatcher.mobilePhone}}</td>
            <td style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;">{{vm.orderStatusDisplay[CustomerOrder.orderStatus]}}</td>
            <td class="operate">
              <button title="催气" ng-click="pressedOrder(CustomerOrder)" type="button" class="btn btn-primary btn-outline btn-xs">
                <i class="">催气</i>
              </button>
            </td>
          </tr>
        </table>
        <div ng-if="vm.userList.length == 0" nj-table-no-data></div>
        <div style="margin-top: -30px" nj-pager pager="pagerHistory"  hidepagesizeoptions=true></div>
      </div>
    </div>
  </div>

  <div class="col-md-3">
    <div class="panel panel-primary" style="height: 870px;overflow: auto">
      <div class="panel-heading">
        <h3 class="panel-title">综合查询</h3>
      </div>

      <!-- /.box-header -->
      <!-- form start -->
      <form role="form">
        <div class="panel-body">
          <ul class="nav nav-tabs">
            <li class="active"><a href="#tab_1" data-toggle="tab">未接来电</a></li>
            <li><a href="#tab_2" data-toggle="tab">通话记录</a></li>
            <li><a href="#tab_3" data-toggle="tab">不间断供气</a></li>
          </ul>
          <div class="tab-content">
            <div class="tab-pane active" id="tab_1">
              <!--<div class="row">-->
                <!--<div class="col-xs-6">-->
                  <!--<label class="text">时间：</label>-->
                  <!--<label class="input"><input type="text"  id="datetimepickerStart1"  class="form-control" ng-model="q.startTime1"></label>-->
                  <!--&lt;!&ndash;</div>&ndash;&gt;-->
                <!--</div>-->
                <!--<div class="col-xs-6">-->
                  <!--<label class="text">至</label>-->
                  <!--<label class="input"><input type="text"  id="datetimepickerEnd1"  class="form-control" ng-model="q.endTime1"></label>-->
                <!--</div>-->
              <!--</div>-->
              <!--<br>-->

              <!--<div class="row">-->
                <!--<div class="col-xs-6">-->
                  <!--<label class="text">客户号码：</label>-->
                  <!--<label class="input">-->
                    <!--<input type="text" name="ani" class="form-control " placeholder="输入客户号码" ng-minlength="11" ng-model="q.ani1" ng-change="searchMissedCallReport()" >-->
                  <!--</label>-->
                  <!--&lt;!&ndash;</div>&ndash;&gt;-->
                <!--</div>-->
                <!--<div class="col-xs-6">-->
                  <!--<label class="text">客服号码：</label>-->
                  <!--<label class="input">-->
                    <!--<input type="text" name="dnis" class="form-control " placeholder="输入客服号码" ng-minlength="6" ng-model="q.dnis1" ng-change="searchMissedCallReport()" >-->
                  <!--</label>-->
                <!--</div>-->
              <!--</div>-->

              <!--<br>-->
              <!--<div class="row">-->
                <!--<div class="col-xs-6">-->
                  <!--<div class="input-group-btn ">-->
                    <!--<button type="search" class="btn btn-flat" ng-click="searchMissedCallReport()"><i class="fa fa-search"></i></button>-->
                  <!--</div>-->
                <!--</div>-->
              <!--</div>-->
              <!--<br>-->
              <table class="table table-bordered table-hover .table-condensed table-striped" style="table-layout:fixed;">
                <thead>
                <tr>
                  <td style="background: lightblue;text-align: left" width="20%">序号</td>
                  <td style="background: lightblue;text-align: left" width="40%">未接客户号码</td>
                  <!--<td style="background: lightblue;text-align: center" width="26%">客服号码</td>-->
                  <!--<td style="background: lightblue;text-align: center" width="14%">方向</td>-->
                  <td style="background: lightblue;text-align: left" width="40%">来电时间</td>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="item in vm.missedCallReportList.data" ng-click="showMissCallDetail(item.ani)">
                  <td class="message">{{$index+1+pagerMissedCallReport.pageSize*(pagerMissedCallReport.getCurPageNo()-1)}}</td>
                  <td class="message">{{item.ani}}</td>
                  <!--<td class="message">{{item.dnis}}</td>-->
                  <!--<td class="message">{{item.directionCN}}</td>-->
                  <!--<td class="message">{{item.direction == ob ? callIn : callOut}}</td>-->
                  <td class="message">{{item.createTime}}</td>
                </tr>
                </tbody>
              </table>
              <div ng-if="vm.missedCallReportList.data.length == 0" nj-table-no-data></div>
              <div nj-pager pager="pagerMissedCallReport" hidePageSizeOptions="true"></div>
            </div>
            <div class="tab-pane " id="tab_2">
              <div class="row">
                <div class="col-xs-6">
                  <label class="text">时间：</label>
                  <label class="input"><input type="text"  id="datetimepickerStart"  class="form-control" ng-model="q.startTime" ng-change="searchReport()" ></label>
                  <!--</div>-->
                </div>
                <div class="col-xs-6">
                  <label class="text">至</label>
                  <label class="input"><input type="text"  id="datetimepickerEnd"  class="form-control" ng-model="q.endTime"　ng-change="searchReport()" ></label>
                </div>
              </div>
              <br>

              <div class="row">
                <div class="col-xs-6">
                  <label class="text">客户号码：</label>
                  <label class="input">
                    <input type="text" name="ani" class="form-control " placeholder="输入客户号码" ng-minlength="11" ng-model="q.ani" ng-change="searchReport()" >
                  </label>
                  <!--</div>-->
                </div>
                <div class="col-xs-6">
                  <label class="text">客服号码：</label>
                  <label class="input">
                    <input type="text" name="dnis" class="form-control " placeholder="输入客服号码" ng-minlength="6" ng-model="q.dnis" ng-change="searchReport()" >
                  </label>
                </div>
              </div>

              <br>
              <!--<div class="row">-->
                <!--<div class="col-xs-6">-->
                  <!--<div class="input-group-btn ">-->
                    <!--<button type="search" class="btn btn-flat" ng-click="searchReport()"><i class="fa fa-search"></i></button>-->
                  <!--</div>-->
                <!--</div>-->
              <!--</div>-->
              <br>
              <table class="table table-bordered table-hover .table-condensed table-striped" style="table-layout:fixed;">
                <thead>
                  <tr>
                    <td style="background: lightblue;text-align: center" width="10%">序号</td>
                    <td style="background: lightblue;text-align: center" width="30%">客户号码</td>
                    <td style="background: lightblue;text-align: center" width="26%">客服号码</td>
                    <td style="background: lightblue;text-align: center" width="14%">方向</td>
                    <td style="background: lightblue;text-align: center" width="20%">来电时间</td>
                  </tr>
                </thead>
                <tbody>
                <tr ng-repeat="item in vm.callReportList.data">
                  <td class="message">{{$index+1+pagerCallReport.pageSize*(pagerCallReport.getCurPageNo()-1)}}</td>
                  <td class="message">{{item.ani}}</td>
                  <td class="message">{{item.dnis}}</td>
                  <td class="message">{{item.directionCN}}</td>
                  <!--<td class="message">{{item.direction == ob ? callIn : callOut}}</td>-->
                  <td class="message">{{timeStrCut(item.createTime)}}</td>
                </tr>
                </tbody>
              </table>
              <div ng-if="vm.callReportList.data.length == 0" nj-table-no-data></div>
              <div nj-pager pager="pagerCallReport"  ></div>
            </div>



            <div class="tab-pane" id="tab_3">
              <br/>
              <div class="col-xs-4" style="margin-top:10px">
                <label>客户编号：</label>
              </div>
              <div class="col-xs-7">
                <div class="box-tools">
                  <div class="input-group input-group-sm">
                    <input type="text" name="table_search" class="form-control " placeholder="" ng-model="q.userIdUninterupt">
                    <div class="input-group-btn">
                      <button type="search" class="btn btn-flat" ng-click="searchUninterruptCustomers()"><i class="fa fa-search"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <br/>
              <br/>
              <div style="margin-top:20px">
                <table class="table table-bordered table-hover .table-condensed table-striped" style="table-layout:fixed;">
                  <tr>
                    <th  width="15%" style="background: lightblue;text-align: center">序号</th>
                    <th  width="40%" style="background: lightblue;text-align: center">客户</th>
                    <th  width="30%" style="background: lightblue;text-align: center">托盘</th>
                    <th  width="15%" style="background: lightblue;text-align: center">重量</th>
                  </tr>
                  <tr ng-repeat="warning in vm.CustomerAutoReportList" ng-click="searchWaringCustomer(warning.user.userId)" ng-class="{danger:true}">
                    <td class="message">{{$index+1+pagerGasCynTrayWarning.pageSize*(pagerGasCynTrayWarning.getCurPageNo()-1)}}</td>
                    <td style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;">{{warning.user.userId}}</td>
                    <td style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;">{{warning.number}}</td>
                    <td style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;">{{warning.validWeight}}</td>
                  </tr>
                </table>
                <div ng-if="vm.CustomerAutoReportList.length == 0" nj-table-no-data></div>
                <div nj-pager pager="pagerGasCynTrayWarning"  ></div>

                <label class="input" style="margin-top:100px"><input type="text" class="form-control input-sm" ng-model="q.userIdUninteruptDealed" placeholder="用户编号"> </label>
                <button type="button" style="margin-top:100px" class="btn btn-sm btn-success pull-right" ng-click="GasCynTrayWarningDealed(q.userIdUninteruptDealed)"><i class="fa fa-sun-o"></i> 已经处理 </button>
              </div>
            </div>

            <!-- /.tab-pane -->
          </div>
          <!-- /.tab-content -->
        </div>
        <!-- Custom Tabs -->
      </form>

    </div>
  </div>
</div>
<div class="row">
  <div class="col-md-9" style="margin-right:10px;height: 400px;margin-top: -360px">
    <ul class="nav nav-tabs">
      <li class="active"><a href="#/decision/cost#tab1" data-toggle="tab">订气</a></li>
      <li><a href="#/decision/cost#tab2" data-toggle="tab">报修</a></li>
      <li><a href="#/decision/cost#tab3" data-toggle="tab">安检</a></li>
      <li><a href="#/decision/cost#tab4" data-toggle="tab">投诉</a></li>
      <li><a href="#/decision/cost#tab5" data-toggle="tab">建议</a></li>
    </ul>
    <div class="tab-content" >
      <div class="tab-pane fade in active" id="tab1">
        <div class="row col-md-12" style="margin-top: 5px">
          <div class="col-md-2" style="margin-top: 5px">
            <div class="input-group">
              <span class="input-group-addon">类型</span>
              <select name="goodsType" ng-model="temp.selectedGoodsType" ng-options="goodsType.name for goodsType in temp.goodsTypesList" class="form-control" ng-selected="" ng-change="goodsTypeChange()"></select>
            </div>
          </div>
          <div class="col-md-3" style="margin-top: 5px">
            <div class="input-group">
              <span class="input-group-addon">商品</span>
              <select name="goods" ng-model="temp.selectedGoods" ng-options="goods.name for goods in temp.goodsList" class="form-control" ng-selected=""></select>
            </div>
          </div>
          <div class="col-md-2" style="margin-top: 5px">
            <div class="input-group pull-right" >
              <span class="input-group-addon">数量</span>
              <input type="number"  class="form-control" ng-model="temp.selectedQuantity" ng-disabled="false" min="1" onkeyup="this.value=this.value.replace(/\-/g,'');">
            </div>
          </div>
          <div class="col-md-2" style="margin-top: 5px;margin-left: -10px">
            <div class="input-group">
              <button type="button" class="btn btn-sm btn-success" ng-click="addToCart()"><i class="fa fa-plus"></i> 添加购物车 </button>
            </div>
          </div>
          <div class="col-md-1 col-md-offset-2" style="margin-top: 5px">
            <div class="input-group">
              <button class="btn btn-sm btn-primary pull-right"  ng-click="createOrder()"><i class="fa fa-plus"></i> 生成订单 </button>
            </div>

          </div>

        </div>
        <div class="panel panel-primary" style="min-height: 300px;">
          <div class="panel-body">

            <div class="row" >
              <div class="col-md-8" style="margin-top: 5px;min-height: 200px">
                <table class="table table-bordered table-hover .table-condensed">

                  <thead>
                  <tr>
                    <td style="background: lightblue;text-align: center" width="8%">商品号</td>
                    <td style="background: lightblue;text-align: center" width="12%">商品名称</td>
                    <td style="background: lightblue;text-align: center" width="10%">商品类型</td>
                    <td style="background: lightblue;text-align: center" width="10%">商品规格</td>
                    <td style="background: lightblue;text-align: center" width="5%">单位</td>
                    <td style="background: lightblue;text-align: center" width="5%">重量</td>
                    <td style="background: lightblue;text-align: center" width="9%">价格</td>
                    <td style="background: lightblue;text-align: center" width="10%">有效期</td>
                    <td style="background: lightblue;text-align: center" width="5%">状态</td>
                    <td style="background: lightblue;text-align: center" width="10%">说明</td>
                    <td style="background: lightblue;text-align: center" width="10%">原始价格</td>
                    <td style="background: lightblue;text-align: center" width="10%">成交价格</td>
                    <td style="background: lightblue;text-align: center" width="10%">数量</td>
                    <td style="background: lightblue;text-align: center" width="10%">小计</td>
                    <td style="background: lightblue;text-align: center" width="10%">删除</td>
                  </tr>
                  </thead>
                  <tbody>
                  <tr ng-repeat="orderDetail in currentOrder.orderDetailList">
                    <td class="message">{{orderDetail.goods.code}}</td>
                    <td class="message">{{orderDetail.goods.name}}</td>
                    <td class="message">{{orderDetail.goods.goodsType.name}}</td>
                    <td class="message">{{orderDetail.goods.specifications}}</td>
                    <td class="message">{{orderDetail.goods.unit}}</td>
                    <td class="message">{{orderDetail.goods.weight}}</td>
                    <td class="message">{{orderDetail.goods.price}}</td>
                    <td class="message">{{orderDetail.goods.lifeExpectancy}}</td>
                    <td class="message">{{orderDetail.goods.status}}</td>
                    <td class="message">{{orderDetail.goods.note}}</td>
                    <td class="message">{{orderDetail.originalPrice}}</td>
                    <td class="message">{{orderDetail.dealPrice}}</td>
                    <td class="message">{{orderDetail.quantity}}</td>
                    <td class="message">{{orderDetail.subtotal}}</td>
                    <td class="operate">
                      <button title="删除" ng-click="deleteGoodsFromCart(orderDetail)" type="button" class="btn btn-primary btn-outline btn-xs">
                        <i class="fa fa-trash-o"></i>
                      </button>
                    </td>
                  </tr>

                  </tbody>
                </table>
              </div>
              <div class="col-md-2" style="margin-top: 5px">
                <div class="input-group">
                  <span class="input-group-addon">联系人</span>
                  <input type="text" class="form-control" ng-model="currentOrder.recvName">
                </div>
              </div>
              <div class="col-md-2" style="margin-top: 5px">
                <div class="input-group">
                  <span class="input-group-addon">电话</span>
                  <input type="text" class="form-control" ng-model="currentOrder.recvPhone">
                </div>
              </div>
              <div class="col-md-4" style="margin-top: 5px">
                <div class="input-group">
                  <span class="input-group-addon">送气地址</span>
                  <input type="text" class="form-control" value={{currentOrder.recvAddr.province}}{{currentOrder.recvAddr.city}}{{currentOrder.recvAddr.country}}{{currentOrder.recvAddr.detail}} ng-disabled="true">
                </div>
              </div>
              <div class="col-md-4" style="margin-top: 5px">
                <div class="form-group">
                  <div class='input-group date'>
                    <span class="input-group-addon">预约时间</span>
                    <input type='text'  id='datetimepickerOrder' class="form-control"/>
                  </div>
                </div>
              </div>
              <div class="col-md-2" style="margin-top: 5px">
                <div class="input-group has-error">
               <span class="input-group-addon">
              <input type="checkbox" aria-label="..." ng-model="currentOrder.urgent">
              </span>
                  <input type="text" class="form-control lead" style="color: red" value="加急配送" disabled　>
                </div>
              </div>
              <div class="col-md-2" style="margin-top: 5px">
                <div class="input-group">
                  <span class="input-group-addon">备注</span>
                  <input type="text" class="form-control" ng-model="currentOrder.comment">
                </div>
              </div>
              <div class="col-md-2" style="margin-top: 5px">
                <div class="input-group has-success">
                  <span class="input-group-addon ">订单总额</span>
                  <input type="number"  class="form-control" ng-model="currentOrder.orderAmount" ng-disabled="true"></input>
                </div>

              </div>
              <div class="col-md-2" style="margin-top: 5px">
                <div class="input-group has-error">
                  <span class="input-group-addon">标记</span>
                  <select name="orderType" ng-model="currentOrder.orderTriggerType" ng-options="orderType.key as orderType.value for orderType in temp.orderTypesConfig" class="form-control" ng-selected=""></select>
                </div>
              </div>

            </div>
          </div>
        </div>
      </div>
      <div class="tab-pane fade" id="tab2">
        <div class="panel panel-primary" style="min-height: 300px;">
          <div class="panel-body">
            <div class="row col-md-12" style="margin-top: 5px">
              <div class="col-md-7">
                <div class="input-group">
                  <span class="input-group-addon">报修类型</span>
                  <select name="mendType" ng-model="temp.selectedMendType" ng-options="mendType.name for mendType in temp.mendTypesList" class="form-control" ng-selected=""></select>
                </div>
              </div>
              <div class="col-md-5">
                <div class="input-group">
                  <button class="btn btn-sm btn-primary "  ng-click="createMend()"><i class="fa fa-plus"></i> 生成报修订单</button>
                </div>
              </div>
            </div>

            <div class="row  col-md-12" >
              <div class="col-md-7" style="margin-top: 5px;min-height: 200px">
                <span class="input-group-addon">报修描述</span>
                <textarea class="form-control" rows="8" ng-model="currentMend.detail"></textarea>
              </div>
              <div class="col-md-2" style="margin-top: 5px">
                <div class="input-group">
                  <span class="input-group-addon">联系人</span>
                  <input type="text" class="form-control" ng-model="currentMend.recvName">
                </div>
              </div>
              <div class="col-md-2" style="margin-top: 5px">
                <div class="input-group">
                  <span class="input-group-addon">联系电话</span>
                  <input type="text" class="form-control" ng-model="currentMend.recvPhone">
                </div>
              </div>
              <div class="col-md-4" style="margin-top: 5px">
                <div class="input-group">
                  <span class="input-group-addon">维修地址</span>
                  <input type="text" class="form-control" value={{currentMend.recvAddr.province}}{{currentMend.recvAddr.city}}{{currentMend.recvAddr.country}}{{currentMend.recvAddr.detail}} ng-disabled="true">
                </div>
              </div>

              <div class="col-md-4" style="margin-top: 5px">
                <div class="form-group">


                  <div class='input-group date'>
                    <span class="input-group-addon">预约时间</span>
                    <input type='text' class="form-control"  id='datetimepickerRepair' ng-model="currentMend.reserveTime"/>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="tab-pane fade" id="tab3">
        <div class="panel panel-primary" style="min-height: 300px;">
          <div class="panel-body">
            <div class="row col-md-12" style="margin-top: 5px">
              <div class="col-md-7">
                <div class="input-group">
                  <span class="input-group-addon">安检类型</span>
                  <select name="securityType" ng-model="temp.selectedSecurityType" ng-options="securityType.name for securityType in temp.securityTypesList" class="form-control" ng-selected=""></select>
                </div>
              </div>
              <div class="col-md-5">
                <div class="input-group">
                  <button class="btn btn-sm btn-primary "  ng-click="createSecurity()"><i class="fa fa-plus"></i> 生成安检订单</button>
                </div>
              </div>
            </div>
            <div class="row　col-md-12" >
              <div class="col-md-7" style="margin-top: 5px;min-height: 200px">
                <span class="input-group-addon">安检描述</span>
                <textarea class="form-control" rows="8" ng-model="currentSecurity.detail"></textarea>
              </div>
              <div class="col-md-2" style="margin-top: 5px">
                <div class="input-group">
                  <span class="input-group-addon">联系人</span>
                  <input type="text" class="form-control" ng-model="currentSecurity.recvName">
                </div>
              </div>
              <div class="col-md-2" style="margin-top: 5px">
                <div class="input-group">
                  <span class="input-group-addon">联系电话</span>
                  <input type="text" class="form-control" ng-model="currentSecurity.recvPhone">
                </div>
              </div>
              <div class="col-md-4" style="margin-top: 5px">
                <div class="input-group">
                  <span class="input-group-addon">安检地址</span>
                  <input type="text" class="form-control" value={{currentSecurity.recvAddr.province}}{{currentSecurity.recvAddr.city}}{{currentSecurity.recvAddr.country}}{{currentSecurity.recvAddr.detail}} ng-disabled="true">
                </div>
              </div>

              <div class="col-md-4" style="margin-top: 5px">
                <div class="form-group">


                  <div class='input-group date'>
                    <span class="input-group-addon">预约时间</span>
                    <input type='text' class="form-control"  id='datetimepickerSecurity' ng-model="currentMend.reserveTime"/>
                  </div>
                </div>
              </div>

            </div>
          </div>
        </div>
      </div>
      <div class="tab-pane fade" id="tab4">
        <div class="panel panel-primary" style="min-height: 300px;">
          <div class="panel-body">
            <div class="row col-md-12" style="margin-top: 5px">
              <div class="col-md-7">
                <div class="input-group">
                  <span class="input-group-addon">投诉类型</span>
                  <select name="complaintType" ng-model="temp.selectedComplaintType" ng-options="complaintType.name for complaintType in temp.complaintTypesList" class="form-control" ng-selected=""></select>
                </div>
              </div>
              <div class="col-md-5">
                <div class="input-group">
                  <button class="btn btn-sm btn-primary "  ng-click="createComplaint()"><i class="fa fa-plus"></i> 生成投诉订单</button>
                </div>
              </div>
            </div>
            <div class="row　col-md-12" >
              <div class="col-md-7" style="margin-top: 5px;min-height: 200px">
                <span class="input-group-addon">投诉描述</span>
                <textarea class="form-control" rows="8" ng-model="currentComplaint.detail"></textarea>
              </div>
              <div class="col-md-2" style="margin-top: 5px">
                <div class="input-group">
                  <span class="input-group-addon">联系人</span>
                  <input type="text" class="form-control" ng-model="currentComplaint.recvName">
                </div>
              </div>
              <div class="col-md-2" style="margin-top: 5px">
                <div class="input-group">
                  <span class="input-group-addon">联系电话</span>
                  <input type="text" class="form-control" ng-model="currentComplaint.recvPhone">
                </div>
              </div>
              <div class="col-md-4" style="margin-top: 5px">
                <div class="input-group">
                  <span class="input-group-addon">投诉地址</span>
                  <input type="text" class="form-control" value={{currentComplaint.recvAddr.province}}{{currentComplaint.recvAddr.city}}{{currentComplaint.recvAddr.country}}{{currentComplaint.recvAddr.detail}} ng-disabled="true">
                </div>
              </div>

              <!--<div class="col-md-4" style="margin-top: 5px">-->
              <!--<div class="form-group">-->


              <!--<div class='input-group date'>-->
              <!--<span class="input-group-addon">预约时间</span>-->
              <!--<input type='text' class="form-control"  id='datetimepickerComplaint' ng-model="currentMend.reserveTime"/>-->
              <!--</div>-->
              <!--</div>-->
              <!--</div>-->
            </div>
          </div>
        </div>
      </div>
      <div class="tab-pane fade" id="tab5">
        <div class="panel panel-primary" style="min-height: 300px;">
          <div class="panel-body">

            <div class="row" >
              <div class="col-md-8" style="margin-top: 5px;min-height: 200px">
                <table class="table table-bordered table-hover .table-condensed">

                  <thead>
                  <tr>
                    <td style="background: lightblue;text-align: left" width="10%">序号</td>
                    <td style="background: lightblue;text-align: left" width="15%">客户编号</td>
                    <td style="background: lightblue;text-align: left" width="15%">客户姓名</td>
                    <td style="background: lightblue;text-align: left" width="30%">客户建议</td>
                    <td style="background: lightblue;text-align: left" width="20%">创建时间</td>
                    <td style="background: lightblue;text-align: left" width="10%">删除</td>
                  </tr>
                  </thead>
                  <tbody>
                  <tr ng-repeat="adviceHistory in vm.adviceHistorylList">
                    <td class="message">{{$index+1+pagerAdvice.pageSize*(pagerAdvice.getCurPageNo()-1)}}</td>
                    <td class="message">{{adviceHistory.userId}}</td>
                    <td class="message">{{adviceHistory.userName}}</td>
                    <td class="message">{{adviceHistory.advice}}</td>
                    <td class="message">{{adviceHistory.createTime}}</td>
                    <td class="operate">
                      <button title="删除" ng-click="deleteAdvice(adviceHistory)" type="button" class="btn btn-primary btn-outline btn-xs">
                        <i class="fa fa-trash-o"></i>
                      </button>
                    </td>
                  </tr>

                  </tbody>
                </table>
                <div ng-if="vm.adviceHistorylList.length == 0" nj-table-no-data></div>
                <div nj-pager pager="pagerAdvice" hidepagesizeoptions=true></div>
              </div>
              <div class="col-md-2" style="margin-top: 5px">
                  <div class="input-group">
                    <button class="btn btn-sm btn-primary pull-right"  ng-click="createAdvice()"><i class="fa fa-plus"></i> 提交客户建议 </button>
                  </div>
              </div>
              <div class="col-md-4" style="margin-top: 5px">
                <div class="input-group">
                  <span class="input-group-addon">客户编号</span>
                  <input type="text" class="form-control" ng-model="vm.currentCustomer.userId" ng-disabled="true">
                </div>
              </div>
              <div class="col-md-4" style="margin-top: 5px">
                <div class="input-group">
                  <span class="input-group-addon">客户建议</span>
                  <textarea type="textarea" class="form-control" ng-model="vm.currentAdvice.advice" style="height: 150px"/>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

